const express = require('express')

const router = express.Router()

const {
    add,
    getnum,
    getall
} = require('../../../controller/cart')

//购物车
router.post('/add', add)
//获取当前用户购物车数量
router.get('/getnum/:userId', getnum)
//查询购物车内所有商品
router.get('/getall/:userId', getall)

module.exports = router